package com.lyf.learn.atsgg.spring.ioc.service;

import com.lyf.learn.atsgg.spring.ioc.dao.UserDao;

/**
 * @AUTHOR LYF
 * @DATE 2022/5/24
 * @VERSION 1.0
 * @DESC
 */
public class UserServiceImpl implements UserService{
    private UserDao userDao;

    public UserServiceImpl(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void add() {
        System.out.println("逻辑层插入.....");
        userDao.add();
    }
}
